<?php
$opt = [
    'socket' => [
        'tcp_nodelay' => true
    ]
];
$ctx = stream_context_create($opt);
$socket = stream_socket_client("tcp://127.0.0.1:6379", $errno, $errstr, 5.0, STREAM_CLIENT_CONNECT, $ctx);
stream_set_timeout($socket, 60, 6000);
fwrite($socket, "*3\r\n$5\r\nSETNX\r\n$6\r\nname22\r\n$3\r\nlqs\r\n");
var_dump(fgets($socket)[0]);
